package com.fyt.ZhongYaoApp.service.impl;

import com.fyt.ZhongYaoApp.mapper.DoctorCatMapper;
import com.fyt.ZhongYaoApp.pojo.DoctorCat;
import com.fyt.ZhongYaoApp.pojo.DoctorCatDet;
import com.fyt.ZhongYaoApp.pojo.Hospital;
import com.fyt.ZhongYaoApp.service.DoctorCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorCatServiceImpl implements DoctorCatService {

    @Autowired
    private DoctorCatMapper doctorCatMapper;

    @Override
    public void add(DoctorCat doctorCat) {

        doctorCatMapper.add(doctorCat);
    }

    @Override
    public String getDoctorCatById(DoctorCat doctorCat) {

        return doctorCatMapper.getDoctorCat(doctorCat);
    }

    @Override
    public List<DoctorCatDet> getDoctorCatDetByDCatId(DoctorCat doctorCat) {
        return doctorCatMapper.getDoctorCatDetByCatId(doctorCat);
    }
}
